package com.ruoyi.project.goods.order.mapper;

import java.util.List;
import com.ruoyi.project.goods.order.domain.GoodsOrder;

/**
 * 订单Mapper接口
 * 
 * @author lonsn
 * @date 2020-11-12
 */
public interface GoodsOrderMapper 
{
    /**
     * 查询订单
     *
     * @param orderNo 订单ID
     * @return 订单
     */
    public GoodsOrder selectGoodsOrderByOrderNo(String orderNo);

    /**
     * 查询订单列表
     * 
     * @param goodsOrder 订单
     * @return 订单集合
     */
    public List<GoodsOrder> selectGoodsOrderList(GoodsOrder goodsOrder);

    /**
     * 新增订单
     * 
     * @param goodsOrder 订单
     * @return 结果
     */
    public int insertGoodsOrder(GoodsOrder goodsOrder);

    /**
     * 修改订单
     * 
     * @param goodsOrder 订单
     * @return 结果
     */
    public int updateGoodsOrder(GoodsOrder goodsOrder);

    /**
     * 删除订单
     * 
     * @param orderNo 订单ID
     * @return 结果
     */
    public int deleteGoodsOrderById(String orderNo);

    /**
     * 批量删除订单
     * 
     * @param orderNos 需要删除的数据ID
     * @return 结果
     */
    public int deleteGoodsOrderByIds(String[] orderNos);
}
